package com.btex.app;

/**
 * Created by wcx on 16/3/16.
 */
public class Config {

    public static String URL_WAPPUB = "http://ceshi2.weicaixun.com/pubwap/";
    public static String URL_WAPPRI = "http://ceshi2.weicaixun.com/priwap/";

//    public static final String URL = "http://test.weixinv.com/";
//    public static final String DOMAIN = "test.weixinv.com";

    public static final String DOMAIN = "android.kongniu.cn";
//    public static final String DOMAIN = "bttest.kongniu.cn";
//    public static final String DOMAIN = "testnet.btex.com";

    //    public static final String URL = "https://btex.com/";
//    public static final String URL = "http://bttest.kongniu.cn/";
    public static String URL = "http://android.kongniu.cn/";
//    public static String URL = " https://www.yinbi.io";
//    public static String URL = "https://yinbi.io/";
//    public static String URL = "http://yxh-test.kongniu.cn/";
//    public static final String URL = "https://testnet.btex.com/";
//    public static final String DOMAIN = "test1.weixinv.com";
//    public static final String URL = "http://test1.weixinv.com/";


    public static String URL_ENTRUST_BUY_COIN = URL + "priapi1/buy_coin"; //委托购买货币
    public static String URL_ENTRUST_SELL_COIN = URL + "priapi1/sell_coin";   //委托售出货币
    public static String URL_SET_IDCARD = URL + "priapi1/set_idcard";   //设置身份证信息
    public static String URL_CANCEL_ORDER = URL + "priapi1/cancel_order /";   //取消订单
    public static String URL_WITHDRAW = URL + "priapi1/withdraw/";   //   数字货币提现
    public static String URL_WITHDRAW_EMAIL = URL + "priapi1/withdraw_email/";   //提现重新发送确认邮件接口
    public static String URL_CHANGE_TRADE_PSW = URL + "priapi1/change_trade_psw";   //修改交易密码。
    public static String URL_MY_ORDERS = URL + "priapi1/my_orders/";   //获取我的所有订单
    public static String URL_MY_COINS = URL + "priapi1/my_coins?";   //版本号
    public static String URL_MY_INFO = URL + "priapi1/my_info?";   //账号详情
    public static String URL_CHANGE_PSW = URL + "priapi1/change_psw";   // 修改密码。
    public static String URL_ENTRUST_INFO = URL + "priapi1/get_orders_trades/"; //获取所有委托单


    public static String URL_COIN_INFO = URL + "api1/pairs";   //币种的所有信息
    public static String URL_PAIRS = URL + "api1/pairs";   //所有市场公开基本数据
    public static String URL_PAIR = URL + "api1/pair";   //所有市场公开基本数据
    public static String URL_ORDERBOOK = URL + "api1/orderbook?";   //获取买卖5挡数据
    public static String URL_PAIR_HISTORY = URL + "api1/trades?";   //历史成交
    public static String URL_TRADES = URL + "api1/trades/";//某个市场的最新成交历史

    public static String URL_CHECK_PIC = URL + "pubapi1/check_pic?SESSID="; //图形验证码
    public static String URL_REGISTER = URL + "pubapi1/user_regist";   // 用户注册接口。
    public static String URL_VERSION = URL + "pubapi1/app_settings?";   //版本号
    public static String URL_GET_REGIST_CODE = URL + "pubapi1/get_regist_code/";   //用户注册接口中获取验证码 此接口会限制用户使用频率。同IP每天只能请求50次，同样的邮箱或者密码每天可以请求10次
    public static String URL_USER_LOGIN = URL + "pubapi1/user_login";   //用户登录接口 最开始只有 账户 密码两个框, 用户用账户密码提交之后，服务器端会给反馈，此用户是否需要图片验证码、此用户是否需要google验证码。
    public static String URL_USER_LOGOUT = URL + "pubapi1/app_logout";   //用户登录接口 最开始只有 账户 密码两个框, 用户用账户密码提交之后，服务器端会给反馈，此用户是否需要图片验证码、此用户是否需要google验证码。
    public static String URL_GET_FEILV = URL + "pubapi1/get_feilv/?";   //获取费率
    public static String URL_ADVERT_ONE = URL + "pubapi1/advert_one/?";   //获取轮播
    public static String URL_SET_PUSH_INFO = URL + "pubapi1/set_push_info/";   //推送
    public static String URL_APP_CONFIG = URL + "pubapi1/app_config/";   //身份消息
    public static String URL_APP_BTEX = URL + "api1/k_data_new?";
    public static String GET_MARKET_LISTS = URL + "pubapi1/get_market_lists?";//市场列表接口
    public static String COLLECT = URL + "priapi1/add_collect_market";
    public static String DEl_COLLECT = URL + "priapi1/cancel_collect_market";
    public static String GET_COLLECT_MARKET = URL + "priapi1/get_collect_market";//我的收藏
    public static String GONG_GAO = URL + "pubapi1/get_bulletin";//公告
    public static String GET_NEW_MARKETS = URL + "pubapi1/get_new_markets";
    public static String SEARCH_MARKETS = URL + "api1/search_markets";
    public static String GET_CHECKRP_TOKEN = URL + "priapi2/get_checkRp_token";//阿里云实人认证token获取
    public static String APP_CONFIG = URL + "/pubapi1/app_config";//多语言


    //新增OTC API
    public static String GET_OTC_ORDERS = URL + "api1/get_otc_orders?pair=USDT_CNY";//获取OTC买卖列表
    public static String OTC_BUY = URL + "priapi2/otc_buy";//OTC买
    public static String OTC_SEL = URL + "priapi2/otc_sell";//OTCmai
    public static String GETIMG = URL + "pub/getImg?img_str=";
    public static String GET_OTC_TRADE_INFO = URL + "priapi2/get_otc_trade_info";
    public static String OTC_GET = URL + "priapi2/otc_get";
    public static String OTC_PAY = URL + "priapi2/otc_pay";
    public static String CANCEL_OTC_TRADE = URL + "priapi2/cancel_otc_trade";
    public static String GET_MY_OTC_TRADES = URL + "priapi2/get_my_otc_trades";
    public static String GET_OTC_ORDER_INFO = URL + "pubapi1/get_otc_order_info";
    public static String GET_OTC_APPEAL_LISTS = URL + "priapi2/get_otc_appeal_lists";
    public static String GET_OTC_TRADES_HIS = URL + "priapi2/get_otc_trades_his";//获取我的订单
    public static String SET_PAY_CARD = URL + "priapi2/set_pay_card";//获取我的订单
    public static String GET_ALL_PROVINCE = URL + "pubapi1/get_all_province";//获取省份数据
    public static String GET_CITYS = URL + "pubapi1/get_citys";//获取城市数据
    public static String GET_BANKS = URL + "pubapi1/get_banks";//获取银行数据
    public static String GET_PAY_CARD = URL + "priapi2/get_pay_card";//获取银行数据
    public static String SET_IDCARD = URL + "priapi1/set_idcard";//C1认证
    public static String GET_MY_PROVE_INFO = URL + "priapi2/get_my_prove_info";//获取我的认证等级信息
    public static String USER_PROVE_ACTION = URL + "priapi1/user_prove_action";
    public static String OTC_APPEAL = URL + "priapi2/otc_appeal";//申诉



    //    期货
    public static String PLACE_ORDER = URL + "mxpri/place_order?";
    public static String ORDERBOOK = URL + "mxpub/orderbook";
    public static String GET_MY_ORDERS = URL + "mxpri/get_my_orders";
    public static String CANCEL_ORDER = URL + "mxpri/cancel_order";
    public static String MX_ACCOUNT = URL + "mxpri/mx_account_info";
    public static String GET_MY_POSITIONS = URL + "mxpri/get_my_positions";
    public static String GET_MX_CONTRACTS = URL + "mxpub/get_mx_contracts";
    public static String CAL_ORDER_MARGIN = URL + "mxpri/cal_order_margin";
    public static String ACCOUNT_TRANSFER = URL + "priapi2/account_transfer";
    public static String GET_MY_ORDERS_HIS = URL + "mxpri/get_my_orders_his";
    public static String ADJUST_POSITION_MARGIN = URL + "mxpri/adjust_position_margin";
    public static String TRADES = URL + "mxpub/trades";
    public static String K_DATA = URL + "mxkdata/k_data";
    public static String ACCOUNT_LISTS = URL + "priapi2/account_lists";
    public static String GET_MY_TRADES_HIS = URL + "mxpri/get_my_trades_his";
    public static String GET_MY_POSITIONS_HIS = URL + "mxpri/get_my_positions_his";
    public static String GET_MY_BALANCE_MARGIN = URL + "mxpri/get_my_balance_margin";
    public static String PRE_CHANGE_LEVERAGE = URL + "mxpri/pre_change_leverage";
    public static String DO_CHANGE_LEVERAGE = URL + "mxpri/do_change_leverage";
    public static String DELTA_MARGIN_RANGE = URL + "mxpri/delta_margin_range";
    public static String PRE_SET_CROSS_STATE = URL + "mxpri/pre_set_cross_state";
    public static String SET_CROSS_STATE = URL + "mxpri/set_cross_state";
    public static String ORDER_MATCH_RESULTS = URL + "/mxpri/order_match_results";

    //4个tab以及tab数量
    public static final int TAB_FRAGMENT1 = 0;
    public static final int TAB_FRAGMENT2 = 1;
    public static final int  TAB_FRAGMENT3 = 2;
    public static final int TAB_FRAGMENT4 = 3;
    public static final int TAB_FRAGMENT5 = 4;
    public static final int TAB_COUNT = 5;//有个会隐藏
    public static final int TAB_COUNT_heyue = 5;//有个会隐藏


    public static final String KEY_USER_ACCOUNT = "email_mobile";
    public static final String KEY_USER_PSW = "psw";
    public static final String KEY_AUTH_NUM = "auth_num";      //谷歌验证
    public static final String KEY_CHECK_PIC = "check_pic";  //图片验证
    public static final String KEY_DATA = "data";
    public static final String KEY_CODE = "code";
    public static final String KEY_PAIR = "pair";
    public static final String KEY_TYPE = "type";
    public static final String KEY_DANWEI = "danwei";
    public static final String KEY_HASH = "hash";
    public static final String KEY_ACTIVE_ORDERS = "active_orders";
    public static final String KEY_BALANCE = "balance";
    public static final String KEY_TRADE_PSW = "trade_psw";
    public static final String KEY_RE_TRADE_PSW = "re_trade_psw";

    public static final String TOKEN = "SESSID";

    public static final String KEY_IS_LOGIN = "is_login";
    public static final String VERSION = "2.0";


    public static String COOKIE = "cookie";
    public static String SESSION = "_SESSION";
    public static String PROVELEVEL = "";


//    合约新增判断字段

    public static String ISTYPENAME = "张";
    public static String ISLIMIT = "限价";
    public static String TREATYLEVER = "2";
    public static String CONTRACT_ID = "1";
    public static String CONTRACT_ID_TYPE = "";

    public static String SELL_YI = "";
    public static String BUY_YI = "";


    public void setBase(String base) {
        this.URL = base;

        URL_ENTRUST_BUY_COIN = URL + "priapi1/buy_coin";   //委托购买货币
        URL_ENTRUST_SELL_COIN = URL + "priapi1/sell_coin";   //委托售出货币
        URL_SET_IDCARD = URL + "priapi1/set_idcard";   //设置身份证信息
        URL_CANCEL_ORDER = URL + "priapi1/cancel_order /";   //取消订单
        URL_WITHDRAW = URL + "priapi1/withdraw/";   //   数字货币提现
        URL_WITHDRAW_EMAIL = URL + "priapi1/withdraw_email/";   //提现重新发送确认邮件接口
        URL_CHANGE_TRADE_PSW = URL + "priapi1/change_trade_psw";   //修改交易密码。
        URL_MY_ORDERS = URL + "priapi1/my_orders/";   //   获取我的所有订单
        URL_MY_COINS = URL + "priapi1/my_coins?";   //版本号
        URL_MY_INFO = URL + "priapi1/my_info?";   //账号详情
        URL_CHANGE_PSW = URL + "priapi1/change_psw";   // 修改密码。
        URL_ENTRUST_INFO = URL + "priapi1/get_orders_trades/";   //获取所有委托单
        URL_COIN_INFO = URL + "api1/pairs";   //币种的所有信息
        URL_PAIRS = URL + "api1/pairs";   //所有市场公开基本数据
        URL_PAIR = URL + "api1/pair";   //所有市场公开基本数据
        URL_ORDERBOOK = URL + "api1/orderbook?";   //获取买卖5挡数据
        URL_PAIR_HISTORY = URL + "api1/trades?";   //历史成交
        URL_TRADES = URL + "api1/trades/";//某个市场的最新成交历史
        URL_CHECK_PIC = URL + "pubapi1/check_pic?SESSID=";   //图形验证码
        URL_REGISTER = URL + "pubapi1/user_regist";   // 用户注册接口。
        URL_VERSION = URL + "pubapi1/app_settings?";   //版本号
        URL_GET_REGIST_CODE = URL + "pubapi1/get_regist_code/";   //用户注册接口中获取验证码 此接口
        URL_USER_LOGIN = URL + "pubapi1/user_login";   //用户登录接口 最开始只有 账户 密码两个框, 用户用账
        URL_USER_LOGOUT = URL + "pubapi1/app_logout";   //用户登录接口 最开始只有 账户 密码两个框, 用户用
        URL_GET_FEILV = URL + "pubapi1/get_feilv/?";   //获取费率
        URL_ADVERT_ONE = URL + "pubapi1/advert_one/?";   //获取轮播
        URL_SET_PUSH_INFO = URL + "pubapi1/set_push_info/";   //推送
        URL_APP_CONFIG = URL + "pubapi1/app_config/";   //身份消息
        URL_APP_BTEX = URL + "api1/k_data_new?";
        GET_MARKET_LISTS = URL + "pubapi1/get_market_lists?";//市场列表接口
        COLLECT = URL + "priapi1/add_collect_market";
        DEl_COLLECT = URL + "priapi1/cancel_collect_market";
        GET_COLLECT_MARKET = URL + "priapi1/get_collect_market";//我的收藏
        GONG_GAO = URL + "pubapi1/get_bulletin";//公告
        GET_NEW_MARKETS = URL + "pubapi1/get_new_markets";
        SEARCH_MARKETS = URL + "api1/search_markets";
        GET_CHECKRP_TOKEN = URL + "priapi2/get_checkRp_token";//阿里云实人认证token获取
        APP_CONFIG = URL + "/pubapi1/app_config";//多语言

        GET_OTC_ORDERS = URL + "api1/get_otc_orders?pair=USDT_CNY";//获取OTC买卖列表
        OTC_BUY = URL + "priapi2/otc_buy";//OTC买
        OTC_SEL = URL + "priapi2/otc_sell";//OTCmai
        GETIMG = URL + "pub/getImg?img_str=";
        GET_OTC_TRADE_INFO = URL + "priapi2/get_otc_trade_info";
        OTC_GET = URL + "priapi2/otc_get";
        OTC_PAY = URL + "priapi2/otc_pay";
        CANCEL_OTC_TRADE = URL + "priapi2/cancel_otc_trade";
        GET_MY_OTC_TRADES = URL + "priapi2/get_my_otc_trades";
        GET_OTC_ORDER_INFO = URL + "pubapi1/get_otc_order_info";
        GET_OTC_APPEAL_LISTS = URL + "priapi2/get_otc_appeal_lists";
        GET_OTC_TRADES_HIS = URL + "priapi2/get_otc_trades_his";//获取我的订单
        SET_PAY_CARD = URL + "priapi2/set_pay_card";//获取我的订单
        GET_ALL_PROVINCE = URL + "pubapi1/get_all_province";//获取省份数据
        GET_CITYS = URL + "pubapi1/get_citys";//获取城市数据
        GET_BANKS = URL + "pubapi1/get_banks";//获取银行数据
        GET_PAY_CARD = URL + "priapi2/get_pay_card";//获取银行数据
        SET_IDCARD = URL + "priapi1/set_idcard";//C1认证
        GET_MY_PROVE_INFO = URL + "priapi2/get_my_prove_info";//获取我的认证等级信息
        USER_PROVE_ACTION = URL + "priapi1/user_prove_action";

        PLACE_ORDER = URL + "mxpri/place_order?";
        ORDERBOOK = URL + "mxpub/orderbook";
        GET_MY_ORDERS = URL + "mxpri/get_my_orders";
        CANCEL_ORDER = URL + "mxpri/cancel_order";
        MX_ACCOUNT = URL + "mxpri/mx_account_info";
        GET_MY_POSITIONS = URL + "mxpri/get_my_positions";
        GET_MX_CONTRACTS = URL + "mxpub/get_mx_contracts";
        CAL_ORDER_MARGIN = URL + "mxpri/cal_order_margin";
        ACCOUNT_TRANSFER = URL + "priapi2/account_transfer";
        GET_MY_ORDERS_HIS = URL + "mxpri/get_my_orders_his";
        ADJUST_POSITION_MARGIN = URL + "mxpri/adjust_position_margin";
        TRADES = URL + "mxpub/trades";
        K_DATA = URL + "mxkdata/k_data";
        ACCOUNT_LISTS = URL + "priapi2/account_lists";
        GET_MY_TRADES_HIS = URL + "mxpri/get_my_trades_his";
        GET_MY_POSITIONS_HIS = URL + "mxpri/get_my_positions_his";
        GET_MY_BALANCE_MARGIN = URL + "mxpri/get_my_balance_margin";
        PRE_CHANGE_LEVERAGE = URL + "mxpri/pre_change_leverage";
        DO_CHANGE_LEVERAGE = URL + "mxpri/do_change_leverage";
        DELTA_MARGIN_RANGE = URL + "mxpri/delta_margin_range";
        PRE_SET_CROSS_STATE = URL + "mxpri/pre_set_cross_state";
        SET_CROSS_STATE = URL + "mxpri/set_cross_state";
        ORDER_MATCH_RESULTS = URL + "/mxpri/order_match_results";

    }

}
